const express = require('express');
const router = express.Router();

// 导入各个模块的路由
const strategyRoutes = require('./strategy');
const backtestRoutes = require('./backtest');
const tradeRoutes = require('./trade');
const klineRoutes = require('./kline');
const configRoutes = require('./config');

// 挂载路由
router.use('/strategy', strategyRoutes);
router.use('/backtest', backtestRoutes);
router.use('/trade', tradeRoutes);
router.use('/kline', klineRoutes);
router.use('/config', configRoutes);

// 健康检查路由
router.get('/health', (req, res) => {
  res.json({ status: 'ok' });
});

module.exports = router;